<?php
$pacote = "classes/componentes";
$pathToThis = pathinfo(__FILE__);
$root = substr($pathToThis['dirname'], 0, strlen($pathToThis['dirname']) - strlen($pacote) - 1);

require_once $root."/classes/componentes/InputText.class.php";
require_once $root."/classes/conversores/ConversorNumericoFloat.class.php";

class InputTextFloat extends InputText {

    function InputTextFloat($label, $required = false, $valorInicial = null, $mLength = 0, $classStyle="InputText") {
    	$this->setLabel($label);
    	$this->setObrigatorio($required);
    	$this->setValor($valorInicial);
    	$this->setMaxLength($mLength);
    	$this->setConversor(new ConversorNumericoFloat());
    	$this->setClassStyle($classStyle);
    }
}
?>